package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 往来客户与账户关系表
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class PartCustomerRelationDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关系ID
     */
        private Integer relationId;
        /**
     * tm_emp表主键
     */
        private Integer empId;
        /**
     * tr_part_customer_relation表主键
     */
        private Integer partCustomerId;
        /**
     * 密码明码
     */
        private String passwordShow;
        /**
     * 备注
     */
        private String remark;
            private Boolean isDeleted;
    
    public PartCustomerRelationDTO() {
        super();
    }




    public Integer getRelationId() {
        return relationId;
    }


    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }



    public Integer getEmpId() {
        return empId;
    }


    public void setEmpId(Integer empId) {
        this.empId = empId;
    }



    public Integer getPartCustomerId() {
        return partCustomerId;
    }


    public void setPartCustomerId(Integer partCustomerId) {
        this.partCustomerId = partCustomerId;
    }



    public String getPasswordShow() {
        return passwordShow;
    }


    public void setPasswordShow(String passwordShow) {
        this.passwordShow = passwordShow;
    }



    public String getRemark() {
        return remark;
    }


    public void setRemark(String remark) {
        this.remark = remark;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "PartCustomerRelationDTO{" +
        "relationId=" + relationId +
        ", empId=" + empId +
        ", partCustomerId=" + partCustomerId +
        ", passwordShow=" + passwordShow +
        ", remark=" + remark +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "relationId");
    }

}
